package edu.spec.wfl.week07.class1.classroom;

public class Human {
    private String area;        // 地区
    private String mainFood;    // 主食
    private String skinColor;   // 肤色
    // TODO 给language赋初值“人话”
    private String language="人话";    // 语言

    // TODO 默认构造方法，方法里实现输出打印“我是人类”
    public Human() {
        System.out.println("我是人类");
    }
    // TODO 自定义构造方法，参数对应4个成员变量的值，方法体完成4个成员变量的初始化

    public Human(String area, String mainFood, String skinColor, String language) {
        this.area = area;
        this.mainFood = mainFood;
        this.skinColor = skinColor;
        this.language = language;
    }

    // TODO 4个成员属性的getter和setter
    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getMainFood() {
        return mainFood;
    }

    public void setMainFood(String mainFood) {
        this.mainFood = mainFood;
    }

    public String getSkinColor() {
        return skinColor;
    }

    public void setSkinColor(String skinColor) {
        this.skinColor = skinColor;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public void printLanguage(){
        System.out.println(this.language);
    }

    public void speak(){
        System.out.println("我说" + this.language);
    }
}
